package cn.com.code.design;

import cn.com.code.design.mq.CreateAccount;
import com.alibaba.fastjson.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zhengpei
 * @date 2021/9/19
 */
public class CreateAccountMqService {

  private static final Logger logger = LoggerFactory.getLogger(CreateAccountMqService.class);

  public void onMessage(String message) {
    CreateAccount createAccount = JSONObject.parseObject(message,CreateAccount.class);
    logger.info("createAccount:[{}]",createAccount.toString());
  }

}
